//
//  AccountHanler.h
//  time
//
//  Created by zuo on 15/4/1.
//  Copyright (c) 2015年 chenyirong007. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserInfoModel.h"

static NSString * const SYSTEM_LOGIN_ISLOGIN = @"system_login_islogin";
static NSString * const SYSTEM_LOGIN_TOKEN = @"system_login_token";
static NSString * const SYSTEM_LOGIN_TELPHONE = @"system_login_telPhone";
static NSString * const SYSTEM_LOGIN_NOWUSEPACKAGE = @"system_login_nowUsePackage";
static NSString * const SYSTEM_LOGIN_USERNAME = @"system_login_username";
static NSString * const SYSTEM_LOGIN_NICKNAME = @"system_login_nickname";
static NSString * const SYSTEM_LOGIN_IDCARDNO = @"system_login_idcardno";
static NSString * const SYSTEM_LOGIN_SEX = @"system_login_sex";
static NSString * const SYSTEM_LOGIN_SIGNATURE = @"system_login_signature";
static NSString * const SYSTEM_LOGIN_PACKAGES = @"system_login_packages";

static NSString * const SYSTEM_LOGIN_PWD = @"system_login_pwd";
static NSString * const SYSTEM_LOGIN_USERID = @"system_login_userId";





@interface AccountHanler : NSObject

/**< 是否是第一次启动 */
+ (BOOL)isFirstLaunch;

+ (void)saveIsFirstLaunch:(BOOL)isFirstLaunch;

/**< 系统本地版本 */
+ (NSString *)appLocalVersion;

+ (NSString *)token;

+ (void)saveToken:(NSString *)token;

+ (void)removeToken;

+ (BOOL)nowUsePackage;

+ (void)saveNowUsePackage:(BOOL)nowUsePackage;

+ (void)removeNowUsePackage;

+ (UserInfoModel *)userInfo;

+ (void)saveUserInfo:(UserInfoModel *)infoModel;

+ (void)removeUserInfo;


+ (NSString *)idcardNo;

+ (void)saveIdcardNo:(NSString *)idcardNo;

+ (void)removeIdcardNo;

+ (NSString *)username;

+ (void)saveUsername:(NSString *)username;

+ (void)removeUsername;

+ (NSString *)telPhone;

+ (void)saveTelPhone:(NSString *)telPhone;

+ (void)removeTelPhone;

+ (NSString *)sex;

+ (void)saveSex:(NSString *)sex;

+ (void)removeSex;

+ (NSString *)nickName;

+ (void)saveNickName:(NSString *)nickName;

+ (void)removeNickName;

+ (NSString *)personalizedSignature;

+ (void)savePersonalizedSignature:(NSString *)personalizedSignature;

+ (void)removePersonalizedSignature;

+ (NSString *)packageList;

+ (void)savePackageList:(NSString *)packages;

+ (NSString *)pwd;

+ (void)savePwd:(NSString *)pwd;

+ (NSString *)userId;

+ (void)saveUserId:(NSString *)userId;

+ (BOOL)isLogin;

+ (void)saveIsLogin:(BOOL)isLogin;

+ (void)removeIsLogin;


@end
